<template>
	<view class="container">
		<topTitle>
			<template #content>
				<!-- 搜索框 -->
				<view class="top-content">
					<uni-icons type="left" color="#fff" size="48rpx"
					class="left" @click="fanh"></uni-icons>
				</view>
			</template>
		</topTitle>
		<view class="qrcode">
			<view class="avatar">
				<image src="/static/logo.png" mode="aspectFit"></image>
			</view>
			<view class="qrcode-content">
				<image src="/static/logo.png" mode="aspectFit"></image>
			</view>
			<view class="subtitle">扫一扫 添加达人</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			fanh() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		height: 100%;
		background: linear-gradient(to bottom, #1495f3 50%, #2863eb 100%);
	}

	.container {
		width: 100%;
		height: 100%;
		// background: #f8f8f8;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	
	.top-content {
		height: 100%;
		position: relative;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		.left {
			position: absolute;
			left: 0;
		}
	}
	
	.qrcode {
		background-color: #fff;
		border-radius: 30rpx;
		position: relative;
		width: 85%;
		text-align: center;
		.avatar {
			
			// margin-top: -50rpx;
			margin-top: -50rpx;
			text-align: center;
			// position: absolute;
			// top: 0;
			// left: 50%;
			// transform: translate(-50%, -50%);
			image {
				width: 120rpx;
				height: 120rpx;
				border-radius: 50%;
				border: 5rpx solid #fff;
			}
		}
		.qrcode-content {
			image {
				width: 450rpx;
				height: 450rpx;
				margin-top: 50rpx;
			}
		}
		.subtitle {
			font-size: 36rpx;
			margin: 50rpx 0;
		}
	}
</style>
